import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueRouter from 'vue-router'
const routerPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)
}

Vue.use(VueRouter)


//移动端公共头全局引入
import WeCahtNavBar from "./components/navbar/navbar.js";
Vue.use(WeCahtNavBar);

Vue.config.productionTip = false
//2019-11-21 vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
//2019-11-21 axios
import axios from 'axios';
Vue.prototype.axios = axios;
//2019-11-21 封装axios
import http from '@/axios/Service.js'
Vue.prototype.http = http
//2019-11-21 微信登录


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
